import request from './request'

// get请求
// export function getBannerList(params) {
//     return new Promise((resolve, reject)=>{
//         request.get("/banner/getList", params).then((result)=>{
//             resolve(result)
//         }).catch(err=>{
//             reject(err)
//         });
//     });
// }

// post请求
// export function addBanner(params) {
//     return new Promise((resolve, reject) => {
//         request.post("/banner/add", params).then((result)=>{
//             resolve(result);
//         }).catch((error)=>{
//             reject(error);
//         });
//     });
// }

// 发送短信验证码   手机
export function sendSmsCaptcha(params) {
    return new Promise((resolve, reject)=>{
        request.post("/api/captcha/sendSmsCaptcha", params).then((result)=>{
            
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 发送短信验证码   邮箱
export function send_email(params) {
    return new Promise((resolve, reject)=>{
        request.post("/api/passport/send_email", params).then((result)=>{
            
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 注册
export function register(params) {
    return new Promise((resolve, reject)=>{
        request.post("/api/passport/register", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}


// 验证码登录
export function passportMobile(params) {
    return new Promise((resolve, reject)=>{
        request.post("/api/passport/mobile", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 密码登录
export function passportLogin(params) {
    return new Promise((resolve, reject)=>{
        request.post("/api/passport/login", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 修改密码
export function passportUpdatePassword(params) {
    return new Promise((resolve, reject)=>{
        request.post("/api/passport/updatePassword", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 首页
export function getPageDetail(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/page/detail", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 今日更新-查看更多
export function pageJinri(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/page/jinri", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}



// 查看用户主页
export function userZhuye(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/user/zhuye", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 我的记载
export function userJizai(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/user/jizai", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 我的记载-家乡
export function homeHome_all(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/home/home_all", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 我的记载-家族
export function homeFamily_all(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/home/family_all", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 我的记载-家乡(记载类型选项)
export function homeSelect_type(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/home/select_type", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 我的记载-家族选项
export function homeFamily_all_select(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/home/family_all_select", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 家族-创建
export function homeCreateFamily(params) {
    return new Promise((resolve, reject)=>{
        request.post("/api/home/createFamily", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 家族-编辑
export function homeUpdateFamily(params) {
    return new Promise((resolve, reject)=>{
        request.post("/api/home/updateFamily", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 家乡-删除
export function homeDeleteFamily(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/home/deleteFamily", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 家乡-创建
export function homeCreateHome(params) {
    return new Promise((resolve, reject)=>{
        request.post("/api/home/createHome", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 家乡-编辑
export function homeUpdateHome(params) {
    return new Promise((resolve, reject)=>{
        request.post("/api/home/updateHome", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 家乡-删除
export function homeDeleteHome(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/home/deleteHome", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}



// 我的-功能
export function userGongneng(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/user/gongneng", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 我的-数据
export function userInfo(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/user/info", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 行者中心
export function userLevelList(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/userLevel/getList", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 修改手机号码
export function userBindMobile(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/user/bindMobile", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 注销
export function userZhuxiao(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/user/zhuxiao", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 退出
export function userLogout(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/user/logout", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 用户协议/隐私政策/关于我们/注销账号/行者服务协议
export function appversionAgreement(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/appversion/agreement", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 积分规则
export function userPointRule(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/user/point_rule", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 我的积分-任务列表
export function userMyPointTask(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/user/my_point_task", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 我的积分-积分记录
export function userPointLog(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/user/point_log", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 我的积分-积分记录
export function userPoint_log_all(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/user/point_log_all", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 我的积分-积分记转让
export function userPointZhuanrang(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/user/point_zhuanrang", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 我的-账户钱包余额
export function userAssets(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/user/assets", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 申请提现
export function userTixian(params) {
    return new Promise((resolve, reject)=>{
        request.post("/api/user/tixian", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 提现说明
export function appversionTixian(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/appversion/tixian", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 兑换_价格
export function userExchangePrice(params) {
    return new Promise((resolve, reject)=>{
        request.post("/api/user/exchange_price", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 兑换_操作
export function userExchange_action(params) {
    return new Promise((resolve, reject)=>{
        request.post("/api/user/exchange_action", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 兑换明细
export function userExchangeLog(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/user/exchange_log", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 牛勒明细
export function userNiule_log(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/user/niule_log", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 余额明细
export function userYueLog(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/user/yue_log", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}


// 兑换码-兑换
export function orderDuihuan(params) {
    return new Promise((resolve, reject)=>{
        request.post("/api/order/duihuan", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 兑换码-兑换记录
export function orderDuihuan_log(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/order/duihuan_log", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}




// 我的订单
export function orderList(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/order/list", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 我的订单详情
export function orderDetail(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/order/detail", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 取消订单
export function orderCancel(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/order/cancel", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 已购课程
export function orderGetKecheng(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/order/get_kecheng", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 历史用户
export function historyUser(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/history/history_user", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 历史用户-删除
export function historyDel(params) {
    return new Promise((resolve, reject)=>{
        request.post("/api/history/del_his_user", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 关注/取消关注
export function userGuanzhu(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/user/guanzhu", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 关注列表
export function userMyGuanzhu(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/user/my_guanzhu", params).then((result)=>{
            // console.log(params,'有吗')
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 被关注列表
export function userBeiGuanzhu(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/user/bei_guanzhu", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 历史-微创
export function historyWeiChuang(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/history/history_weichuang", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 历史-微创-删除
export function historyDel_his_weichuang(params) {
    return new Promise((resolve, reject)=>{
        request.post("/api/history/del_his_weichuang", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 历史-共创
export function historyGongchuang(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/history/history_gongchuang", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 历史-共创-删除
export function historyDel_his_gongchuang(params) {
    return new Promise((resolve, reject)=>{
        request.post("/api/history/del_his_gongchuang", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 历史-课程
export function historyKecheng(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/history/history_kecheng", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 历史-课程-删除
export function historyDel_his_kecheng(params) {
    return new Promise((resolve, reject)=>{
        request.post("/api/history/del_his_kecheng", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 导航仪详情
export function daohangyiInfo(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/daohangyi/info", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 是否可以播放
export function daohangyiIf_buy(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/daohangyi/if_buy", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}
// 购买要义获取价格(使用优惠或积分抵扣)
export function daohangyiGet_pay_price(params) {
    return new Promise((resolve, reject)=>{
        request.post("/api/daohangyi/get_pay_price", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}



// 购买要义
export function daohangyiBuy_yaoyi(params) {
    return new Promise((resolve, reject)=>{
        request.post("/api/daohangyi/buy_yaoyi", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 要义详情
export function daohangyiYaoyi_info(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/daohangyi/yaoyi_info", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 历史-导航仪
export function historyDaohangyi(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/history/history_daohangyi", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 历史-导航仪-删除
export function historyDel_his_daohangyi(params) {
    return new Promise((resolve, reject)=>{
        request.post("/api/history/del_his_daohangyi", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 历史-星河
export function historyXinghe(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/history/history_xinghe", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 历史-星河-删除
export function historyDel_his_xinghe(params) {
    return new Promise((resolve, reject)=>{
        request.post("/api/history/del_his_xinghe", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 历史-书院
export function historyShuYuan(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/history/history_shuyuan", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 历史-书院-删除
export function historyDel_his_shuyuan(params) {
    return new Promise((resolve, reject)=>{
        request.post("/api/history/del_his_shuyuan", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 历史-一田
export function historyYiTian(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/history/history_yitian", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 历史-一田-删除
export function historyDel_his_yitian(params) {
    return new Promise((resolve, reject)=>{
        request.post("/api/history/del_his_yitian", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 人物志详情
export function renwuzhiDetail(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/renwuzhi/detail", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 人物志收藏
export function renwuzhiShoucang(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/renwuzhi/shoucang", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 人物志详情飞离洞列表
export function renwuzhiFeilidong(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/renwuzhi/feilidong", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 历史-人物
export function historyRenWu(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/history/history_renwu", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 历史-人物-删除
export function historyDel_his_renwu(params) {
    return new Promise((resolve, reject)=>{
        request.post("/api/history/del_his_renwu", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 历史-图书
export function historyTushu(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/history/history_tushu", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 历史-图书-删除
export function historyDel_his_tushu(params) {
    return new Promise((resolve, reject)=>{
        request.post("/api/history/del_his_tushu", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 历史-今日更新
export function historyJinRi(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/history/history_jinri", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 历史-今日更新-删除
export function historyDel_his_jinri(params) {
    return new Promise((resolve, reject)=>{
        request.post("/api/history/del_his_jinri", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 历史-训练营
export function historyXunLian(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/history/history_xunlianying", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 历史-训练营-删除
export function historyDel_his_xunlianying(params) {
    return new Promise((resolve, reject)=>{
        request.post("/api/history/del_his_xunlianying", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 我的优惠券
export function userCoupon(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/user/coupon", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 我的优惠券-详情
export function userCoupon_info(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/user/coupon_info", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 微创详情-收藏
export function weichuangShoucang(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/weichuang/shoucang", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 微创详情
export function weichuangDetail(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/weichuang/detail_weichuang", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 我的微创-飞离洞
export function usergongnengFei(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/usergongneng/feilidong", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 我的微创-灵感塔
export function usergongnengLingganta(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/usergongneng/lingganta", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 我的微创-诗心园
export function usergongnengShi(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/usergongneng/shixinyuan", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 我的微创-文心岛
export function usergongnengWen(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/usergongneng/wenxindao", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 我的微创-星云共创
export function usergongnengGong(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/usergongneng/gongchuang", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 删除微创
export function weichuangDelete_weichuang(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/weichuang/delete_weichuang", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 我的微创-我的赞/获得的赞
export function usergongnengZan(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/usergongneng/my_dianzan", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 我的微创-我的评论/收到回复
export function usergongnengPing(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/usergongneng/my_huifu", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 评论-删除
export function userDelete_comment(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/user/delete_comment", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 收藏
export function usergongnengShouCang(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/usergongneng/shoucang", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}



// 我的打卡
export function usergongnengMyDaka(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/usergongneng/my_daka", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 我的研修
export function usergongnengMyYanxiu(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/usergongneng/my_yanxiu", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 游历
export function usergongnengYouLi(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/usergongneng/youli", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 游历-游记
export function usergongnengYouLiDetail(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/usergongneng/youli_youji", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 我的星球-公共研讨
export function usergongnengGongGong(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/usergongneng/my_xingqiu_gonggong", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 我的星球-我加入的
export function usergongnengJiaRu(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/usergongneng/my_xingqiu_jiaru", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 我的星球-我关注的
export function usergongnengGuanZhu(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/usergongneng/my_xingqiu_guanzhu", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 我的星球-我回复的
export function usergongnengHuiFu(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/usergongneng/my_xingqiu_huifu", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 我的星球-我发布的
export function usergongnengFaBu(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/usergongneng/my_xingqiu_fabu", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 解散星球
export function usergongnengJiesan(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/usergongneng/jiesan", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 星球分类
export function xingheGettype(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/xinghe/gettype", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 星球用户
export function xingheUserList(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/xinghe/user_list", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 转让星球
export function xingheZhuanRang(params) {
    return new Promise((resolve, reject)=>{
        request.post("/api/xinghe/zhuanrang", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 星球详情-加入/退出星球
export function xingheJiaRu(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/xinghe/jiaru", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 星球详情-关注/取消
export function xingheCollect(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/xinghe/collect", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 福利专区
export function helpFulilist(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/help/fulilist", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 福利专区-详情
export function helpfulidetail(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/help/fulidetail", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 客服中心
export function helpKefuList(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/help/kefulist", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 客服中心-问题解答-详情
export function helpKefudetail(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/help/kefudetail", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 意见反馈
export function helpFeedback(params) {
    return new Promise((resolve, reject)=>{
        request.post("/api/help/feedback", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 故土恩
export function homeGetList(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/home/getList", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 家族树
export function homeGetListFamily(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/home/getListFamily", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 家族树详情
export function homeDetailFamily(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/home/detailFamily", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 故土恩详情/家乡详情
export function homeDetail(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/home/detail", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 家族树/故土恩点赞
export function homeDianzan(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/home/dianzan", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 首页-逍遥游
export function weichuangXiaoyaoyou(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/weichuang/xiaoyaoyou", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 首页-诗心园
export function weichuangShixinyuan(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/weichuang/shixinyuan", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 首页-问道山/一田
export function yitianZixunwendao(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/yitian/zixunwendao", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 文章详情 首页-问道山/一田详情
export function yitianDetail(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/yitian/detail", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 文章详情 首页-问道山/一田收藏
export function yitianShoucang(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/yitian/shoucang", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 咨询提交表单
export function yitianMessage(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/yitian/message", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 购买课程获取价格(使用优惠或积分抵扣)
export function kechengGet_pay_price(params) {
    return new Promise((resolve, reject)=>{
        request.post("/api/kecheng/get_pay_price", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}


// 购买课程获取价格(使用优惠或积分抵扣)
export function kechengGet_pay_price_dacheng(params) {
    return new Promise((resolve, reject)=>{
        request.post("/api/kecheng/get_pay_price_dacheng", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 购买课程(大成/奥义通用)
export function kechengBuy_kecheng(params) {
    return new Promise((resolve, reject)=>{
        request.post("/api/kecheng/buy_kecheng", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 购买课程(大成)
export function buy_kecheng_dacheng(params) {
    return new Promise((resolve, reject)=>{
        request.post("/api/kecheng/buy_kecheng_dacheng", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}


// 购买咨询问道(价格)
export function yitianGet_pay_price(params) {
    return new Promise((resolve, reject)=>{
        request.post("/api/yitian/get_pay_price", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 购买咨询问道
export function yitianBuy_wendao(params) {
    return new Promise((resolve, reject)=>{
        request.post("/api/yitian/buy_wendao", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 支付方式
export function appversionGet_pay_type(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/appversion/get_pay_type", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 是否设置支付密码  仅限牛勒支付
export function orderPay_password(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/order/pay_password", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 设置支付密码  仅限牛勒支付
export function orderSet_pay_password(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/order/set_pay_password", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 牛勒支付(付款)
export function orderNiule_pay(params) {
    return new Promise((resolve, reject)=>{
        request.post("/api/order/niule_pay", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 支付宝支付(付款)  获取支付宝订单字符串
export function orderAli_pay(params) {
    return new Promise((resolve, reject)=>{
        request.post("/api/order/ali_pay", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// paypal支付(付款)
export function orderPaypal_pay(params) {
    return new Promise((resolve, reject)=>{
        request.post("/api/order/paypal_pay", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 切换支付方式获取价格
export function orderGet_pay_price(params) {
    return new Promise((resolve, reject)=>{
        request.post("/api/order/get_pay_price", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 获取支付状态
export function orderGet_order_status(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/order/get_order_status", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 起名等表单提交
export function yitianForm_submit(params) {
    return new Promise((resolve, reject)=>{
        request.post("/api/yitian/form_submit", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 首页-冰释引-作品
export function userMyzuopin(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/user/myzuopin", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 大成学堂
export function kechengDachengxuetang(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/kecheng/dachengxuetang", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}
// 我的大成-章节详情
export function kechengDacheng_info(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/kecheng/dacheng_info", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 奥义详情
export function kechengAoyi_info(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/kecheng/aoyi_info", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 课程章节-收藏
export function kechengCollect(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/kecheng/collect", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 课程章节-时长统计
export function kechengXuexi(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/kecheng/xuexi", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 课程收听完成(任务)
export function kechengShoutingwancheng(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/kecheng/shoutingwancheng", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 研修完成
export function kechengYanxiu_end(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/kecheng/yanxiu_end", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 图书林-详情
export function tushuDetail(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/tushu/detail", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 图书林-收藏
export function tushuCollect(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/tushu/collect", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 章节详情
export function kechengInfo(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/kecheng/info", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 是否可以查看详情
export function kechengIf_buy(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/kecheng/if_buy", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}


// 参与学习课程(大成/奥义通用)
export function kechengCanyuyanxiu(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/kecheng/canyuyanxiu", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 下边-微创
export function weichuangGetList(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/weichuang/getList", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 创建微创
export function weichuangCreate(params) {
    return new Promise((resolve, reject)=>{
        request.post("/api/weichuang/create_weichuang", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 修改微创
export function weichuangUpdate(params) {
    return new Promise((resolve, reject)=>{
        request.post("/api/weichuang/update_weichuang", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 创建微创文心岛续写选项
export function weichuangGetwenxindaoname(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/weichuang/getwenxindaoname", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 共创图书详情
export function gongchuangGetDe(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/gongchuang/de", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 共创图书章节列表
export function gongchuangGetList(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/gongchuang/getList", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 共创图书章节详情
export function gongchuangDetail(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/gongchuang/detail", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}


// 共创列表
export function gongchuangGongList(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/gongchuang/gongList", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 共创详情
export function gongchuangGongDetail(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/gongchuang/gongDetail", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 共创-创建
export function gongCreate_gongchuang(params) {
    return new Promise((resolve, reject)=>{
        request.post("/api/gongchuang/create_gongchuang", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 首页-冰释引-微创
export function userWeichuang(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/user/weichuang", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 查看用户主页下边微创(文心岛章节)
export function userWenxindao_zhangjie(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/user/wenxindao_zhangjie", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}


// 首页-冰释引-家园
export function userJiayuan(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/user/jiayuan", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 首页-冰释引-相册
export function userXiangce(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/user/xiangce", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 我的-相册-删除
export function userXiangce_delete(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/user/xiangce_delete", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 我的-相册-添加
export function userXiangce_add(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/user/xiangce_add", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 首页-冰释引-评论
export function userPingLun(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/user/pinglun", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 山海配置(暗文/背景音乐)
export function appversionShanhai(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/appversion/shanhai", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 山海名号选项
export function userNameAlias(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/user/name_alias", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 编辑信息
export function userPersonal(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/user/personal", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 山海地区
export function regionRegion(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/region/region", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 山海奥义列表
export function kechengAoyi(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/kecheng/aoyi", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 下边-研修-奥义列表/训练营列表   这个接口和上面山海奥义列表一样的效果
export function kechengYanxiu(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/kecheng/yanxiu", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 训练营详情
export function xunlianyingDetail(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/xunlianying/detail", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 参加训练
export function xunlianyingCanjia(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/xunlianying/canjia", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 训练打卡
export function xunlianyingDaka(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/xunlianying/daka", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 训练-打卡排行
export function xunlianyingPaihang(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/xunlianying/paihang", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 训练-打卡记录
export function xunlianyingDakaList(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/xunlianying/dakaList", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}


// 系统消息
export function messageXitong_message(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/message/xitong_message", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 星球接受邀请
export function xingheJieshou_yaoqing(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/xinghe/jieshou_yaoqing", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 评论消息
export function messagePinglun(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/message/pinglun", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 点赞消息
export function messageDianzan(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/message/dianzan", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 关注消息
export function messageGuanzhu(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/message/guanzhu", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 教研消息
export function messageJiaoyan(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/message/jiaoyan", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}


// 会员等级
export function userLevelInfo(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/user/user_level_info", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}